package cn.school.mybatis.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.school.mybatis.pojo.Grade;

public interface GradeDao {

	@Select("select * from s_grade")
	@ResultType(Grade.class)
	List<Grade> select();

	@Delete("delete from s_grade where id=#{0}")
	public int del(long id);

	@Update("update s_grade set gname=#{gname} where id=#{id}")
	public int update(Grade g);
}
